package com.woniu.his.result;

/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-03 12:06
 */
public enum CommonResultCode implements ResultCode{
    SUCCESS(200,"执行成功"),
    GENERAL_FAIL(500,"执行失败"),
    INVALID_PARAM(400,"参数错误");

    private int code;
    private String message;

    CommonResultCode(int code, String message){
        this.code=code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
